<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    测试接口
    <script>
        function loadXMLDoc(){
            var userForm = 
            {
                bAddUser: "S600001",
                bCR_Area: "30",
                bCR_Camera: "1111111",
                bCR_Name: "教室2222",
                bCR_QD: "<p>多少吃多少</p><p>当时发生的</p>",
                bCR_Time: "“2019-06-20”",
                bDeptID: "85D3A3D9-4217-44B0-BBD7-A1B78E38EF70",
                bUserName: "S600001",
            }
            var xmlhttp;
            if (window.XMLHttpRequest)
            {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp=new XMLHttpRequest();
            }
            else
            {// code for IE6, IE5
                xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange=function()
            {
                if (xmlhttp.readyState==4 && xmlhttp.status==200)
                {
                    alert(xmlhttp.responseText);
                }
            }
            xmlhttp.open("POST","http://test.shanxiup.cn/ws/RcService.asmx/add_rc_classroom",true);
            xmlhttp.setRequestHeader("Content-type",'application/json;charset=UTF-8');
            xmlhttp.send(JSON.stringify(userForm));
        }
        loadXMLDoc();
    </script>
</body>
</html>